
function lalala() {
	var lalala = document.getElementById("lalala");
	var lalala_text = document.getElementById("lalala_text");
	var lalala_text_2 = document.getElementById("lalala_text_2");
	var lalala_text_3 = document.getElementById("lalala_text_3");
	var lalala_text_4 = document.getElementById()
}

//  实现JS数组去重

function unique(arr) {
	var res = [];
	for (var i = 0; i < arr.length; i++) {
		if (res.indexOf(arr[i]) == -1) {
			res.push(arr[i]);
		}
	}
	return res;
}

//  实现JS 数组排序
function sort(arr) {
	var res = arr.sort(function(a, b) {
		return a - b;
	});
	return res;
}

// 实现JS 验证字符串是否为IPV6地址
function isIPv6(str) {
	var reg = /^([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}$|^([0-9a-fA-F]{1,4}:){1,7}:|^([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}$|^([]
}


// 实现JS 验证字符串是否为IPV4地址
function isIPv4(str) {
	var reg = /^([0-9]{1,3}\.){3}[0-9]{1,3}$|^([0-9]{1,3}\.){3}[0-9]{1,3}$|^()
}

//  JS 实现页面登录逻辑
function login() {
	var username = document.getElementById("username").value;
	var password = document.getElementById("password").value;
	if (username == "admin" && password == "123456") {
		alert("登录成功");
	} else {
		alert("用户名或密码错误");
	}
}
